package fr.sedoo.sssdata.server.sos.request;

import net.opengis.swes.x20.DeleteSensorDocument;
import net.opengis.swes.x20.DeleteSensorType;
import fr.sedoo.sssdata.server.sos.XmlBeansUtils;

public class SosDeleteRequest extends SosRequest {

	public SosDeleteRequest(String sensorId)
	{
		DeleteSensorDocument deleteSensorDoc = DeleteSensorDocument.Factory.newInstance();
		DeleteSensorType deleteSensor = deleteSensorDoc.addNewDeleteSensor();
		deleteSensor.setService("SOS");
		deleteSensor.setVersion("2.0.0");
		deleteSensor.setProcedure(sensorId);
		setRequest(XmlBeansUtils.toString(deleteSensorDoc));
	}
}
